Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: save addresses only when used for closing a channel #252

Merged
merged 4 commits into from
Jun 28, 2024

Conversation

Jasonvdb
Copy link
Collaborator

Previously we were persisting every new close address to file. This resulted in saving many addresses that may have not been used for a channel close.

Rather persist addresses:

  • When confirmed to be used for shutdown script when accepting a channel (for coop closes)
  • When sweeping outputs (from a force close).

This way Bitkit can use this address file to explicitly watch for any new txs and update the UI after a coop or force close.

@Jasonvdb Jasonvdb merged commit 105e664 into master Jun 28, 2024
2 of 6 checks passed
@Jasonvdb Jasonvdb deleted the close-addresses branch June 28, 2024 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants